<h1>产品管理 - <span id="secondHeading">增加产品库存</span></h1>
<% if @flash[:notice] -%>
<div id="notice"><%= @flash[:notice] %></div>
<% end -%>
<%=form_tag ({:action=>'list_product_4_stock'}, :id=>"input-form")%>
<div>
	品名规格：<input type="text" name="product_serial" maxlength="20">&nbsp;&nbsp;&nbsp;
	导针规格：<input type="text" name="product_name" maxlength="20">&nbsp;<input type="submit" value="查询" class="sub">
</div>
</form>
<TABLE border="0" id="LIST_TB">
	<TR id="LIST_TB_TITLE">
       <td nowrap>品名规格</td>
      <td nowrap>导针规格</td>
      <td nowrap>F（槽宽）</td>
      <td nowrap>B（中径）</td>
      <td nowrap>P（脚距）</td>
      <td nowrap>入库日期</td>
      <td nowrap >数量（kpcs）</td>
      <td nowrap>单价</td>
      <td>相关操作</td>
    </tr>
    <%@products.each do |product|%>
    <TR id="LIST_TB_CONTENT1">
      <td><%=product.serial%></td>
      <td><%=product.name%></td>
      <td><%=product.F%></td>
      <td><%=product.B%></td>
      <td><%=product.P%></td>
      <td><%=product.in_date_at%></td>
      <td><%=product.total_counts%></td>
      <td><%=product.sale_price%></td>
      <td><a href="/product/stock/<%=product.id%>"><img src="/images/edit.gif" alt="增加产品库存"></a></td>
    </tr>
    <%end%>
</table>
<table>
        <tr>
                <td>
                        <input type="button" value="打印当前页" class="sub" onclick="openPrintWindow('LIST_TB')"/>
                        <input type="button" value="导出当前数据" class="sub" onclick="CellAreaExcel('LIST_TB')"/>
                </td>
        </tr>
</table>
